package oool.top;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.oool.service.IPrintService;
import top.oool.service.PrintLogVo;

/**
 * Created by IntelliJ IDEA.
 * User: kui.zhang
 * Date: 2019/4/23 14:36
 * Email:kui.zhang@chinaredstar.com
 */
@SpringBootApplication
@RestController
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Autowired
    private IPrintService printService;

    @RequestMapping("/getMsg")
    public String getMsg() {
        return printService.print(new PrintLogVo("hhhhh", "jjjjjjjjjjj", 1111L));
    }
}
